/**
    Copyright (C) 2011  Alexander Vollmer

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.jefb.util.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.jefb.entity.IBasicEntity;

@Entity
@Table(name="USER_ACTION")
public class UserActionEntity implements IBasicEntity, Serializable{

	private static final long serialVersionUID = 1L;
	
	private Long id;
	private String username;
	private UserAction userAction;
	
	private Date creationTime;
	private Date lastUpdateTime;
	
	@Id
	@GeneratedValue
	@Column(name = "ID")
	public Long getId() {
		return id;
	}

	@Column(name = "USERNAME", nullable = true)
	public String getUsername() {
		return username;
	}

	@Column(name = "CREATION_TIME", nullable = true)
	public Date getCreationTime() {return creationTime;}
	
	@Column(name = "LAST_UPDATE_TIME", nullable = true)
	public Date getLastUpdateTime() {return lastUpdateTime;}
	
	@Column(name = "USER_ACTION", nullable = true)
	public UserAction getUserAction() {
		return userAction;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public void setCreationTime(Date creationTime) {this.creationTime = creationTime;}
	public void setLastUpdateTime(Date lastUpdateTime) {this.lastUpdateTime = lastUpdateTime;}

	public void setUserAction(UserAction userAction) {
		this.userAction = userAction;
	}
	
}
